<?php

// 自动加载类
require_once __DIR__ . '/Cmd/cmdbase.php';
require_once __DIR__ . '/Cmd/login.php';
require_once __DIR__ . '/Cmd/handshake.php';
require_once __DIR__ . '/Cmd/match.php'; 
require_once __DIR__ . '/Cmd/exitroom.php'; 
require_once __DIR__ . '/Cmd/startbattle.php'; 
require_once __DIR__ . '/Cmd/actionbattle.php'; 
require_once __DIR__ . '/Cmd/exitbattle.php'; 
require_once __DIR__ . '/Cmd/reconnect.php';
require_once __DIR__ . '/Cmd/reenterroom.php';
require_once __DIR__ . '/Cmd/unbindgroup.php';


$GLOBALS['Cmd_center'] = array(
	login::class => new login(),
	handshake::class => new handshake(),
	match::class => new match(),
	exitroom::class => new exitroom(),
	startbattle::class => new startbattle(),
	actionbattle::class => new actionbattle(),
	exitbattle::class => new exitbattle(),
	reconnect::class => new reconnect(),
	reenterroom::class => new reenterroom(),
	unbindgroup::class => new unbindgroup(),
 );

//临时代码，后面不放这个
require_once __DIR__ . '/Mgr/GroupMgr.php';
require_once __DIR__ . '/Mgr/ClientMgr.php';
require_once __DIR__ . '/Mgr/CommonConst.php';
$GLOBALS['GroupMgr'] = new GroupMgr();
$GLOBALS['ClientMgr'] = new ClientMgr();
echo "load cmd.php\n";